package com.ruoyi.project.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * aliPay对象 sys_ali_pay
 *
 * @author hongwj
 * @date 2023-08-15
 */
public class SysAliPay extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long configId;

    /**
     * 应用ID
     */
    private String appId;

    /**
     * 编码
     */
    private String charset="utf-8";

    /**
     * 类型 固定格式json
     */
    private String format="JSON";

    /**
     * 网关地址
     */
    private String gatewayUrl;

    /**
     * 异步回调
     */
    private String notifyUrl;

    /**
     * 商户私钥
     */
    private String privateKey;

    /**
     * 支付宝公钥
     */
    private String publicKey;

    /**
     * 回调地址
     */
    private String returnUrl;

    /**
     * 签名方式
     */
    private String signType;

    /**
     * 商户号
     */
    private String sysServiceProviderId;

    /**
     * 应用公钥证书路径
     */
    private String certPath;

    /**
     * 支付宝公钥证书路径
     */
    private String publicCertpath;

    /**
     * 支付宝根证书路径
     */
    private String rootCertPath;

    /**
     * 1 密钥模式 2 证书模式
     */
    private String mode;

    /**
     * 主配置
     */
    @Excel(name = "主配置")
    private String isPrimary;

    public void setConfigId(Long configId) {
        this.configId = configId;
    }

    public Long getConfigId() {
        return configId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppId() {
        return appId;
    }

    public void setCharset(String charset) {
        this.charset = charset;
    }

    public String getCharset() {
        return charset;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public String getFormat() {
        return format;
    }

    public void setGatewayUrl(String gatewayUrl) {
        this.gatewayUrl = gatewayUrl;
    }

    public String getGatewayUrl() {
        return gatewayUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPublicKey(String publicKey) {
        this.publicKey = publicKey;
    }

    public String getPublicKey() {
        return publicKey;
    }

    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }

    public String getReturnUrl() {
        return returnUrl;
    }

    public void setSignType(String signType) {
        this.signType = signType;
    }

    public String getSignType() {
        return signType;
    }

    public void setSysServiceProviderId(String sysServiceProviderId) {
        this.sysServiceProviderId = sysServiceProviderId;
    }

    public String getSysServiceProviderId() {
        return sysServiceProviderId;
    }

    public void setCertPath(String certPath) {
        this.certPath = certPath;
    }

    public String getCertPath() {
        return certPath;
    }

    public void setPublicCertpath(String publicCertpath) {
        this.publicCertpath = publicCertpath;
    }

    public String getPublicCertpath() {
        return publicCertpath;
    }

    public void setRootCertPath(String rootCertPath) {
        this.rootCertPath = rootCertPath;
    }

    public String getRootCertPath() {
        return rootCertPath;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public String getMode() {
        return mode;
    }

    public void setIsPrimary(String isPrimary) {
        this.isPrimary = isPrimary;
    }

    public String getIsPrimary() {
        return isPrimary;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("configId", getConfigId())
                .append("appId", getAppId())
                .append("charset", getCharset())
                .append("format", getFormat())
                .append("gatewayUrl", getGatewayUrl())
                .append("notifyUrl", getNotifyUrl())
                .append("privateKey", getPrivateKey())
                .append("publicKey", getPublicKey())
                .append("returnUrl", getReturnUrl())
                .append("signType", getSignType())
                .append("sysServiceProviderId", getSysServiceProviderId())
                .append("certPath", getCertPath())
                .append("publicCertpath", getPublicCertpath())
                .append("rootCertPath", getRootCertPath())
                .append("mode", getMode())
                .append("isPrimary", getIsPrimary())
                .toString();
    }
}
